package it.wzm.lightweightlogx;

import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "client")
@NamedQueries({@NamedQuery(name = "Client.findByPersonalKey", query = "SELECT c FROM Client c WHERE c.personalKey = :personalKey")})
public class Client implements Serializable {
	@Id
	//@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="personal_key")
	private String personalKey;
	@Column(name="client_id")
	private Integer clientId;
	@Column(name="created")
	private Timestamp created;
	@Column(name="updated")
	private Timestamp updated;
	@Column(name="email")
	private String email;
	@Column(name="company")
	private String company;
	@Column(name="responsible")
	private String responsible;
	@Column(name="application_name")
	private String applicationName;

	private static final long serialVersionUID = 1L;

	public Client() {
		super();
	}

	public String getPersonalKey() {
		return this.personalKey;
	}

	public void setPersonalKey(String personalKey) {
		this.personalKey = personalKey;
	}

	public Integer getClientId() {
		return this.clientId;
	}

	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}

	public Timestamp getCreated() {
		return this.created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public Timestamp getUpdated() {
		return this.updated;
	}

	public void setUpdated(Timestamp updated) {
		this.updated = updated;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getResponsible() {
		return this.responsible;
	}

	public void setResponsible(String responsible) {
		this.responsible = responsible;
	}

	public String getApplicationName() {
		return this.applicationName;
	}

	public void setApplicationName(String applicationName) {
		this.applicationName = applicationName;
	}

}
